<%+header%>
	<fieldset class="cbi-section">
		<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
			<i class="icon-align-justify"></i>
			</span>
			<h5><%:Upgrade MCU firmware%></h5>
		</div>
		<div class="widget-content nopadding">
		<br>
		<% if upgrade_avail then %>
			<form method="post" action="<%=url('admin/MCU_Upgrade/mcu_upgrade/mcuupgrade')%>" enctype="multipart/form-data">
				<input type="hidden" name="token" value="<%=token%>" />
				<div class="cbi-section-descr"><%:Upload a .bin image here to replace the running firmware. (requires a compatible firmware image).%></div>
				<div class="cbi-section-node">
					<div class="cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
						<label class="cbi-value-title" for="image"><%:Image%>:</label>
						<div class="cbi-value-field">
							<input type="file" name="image" id="image" />
							<button class="btn btn-primary" type="submit"> 
								<i class="icon icon-repeat"></i>
									<%:Flash image...%>
							</button>
						</div>
					</div>
				</div>
				<% if image_invalid then %>
					<div class="cbi-section-error"><%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %></div>
				<% end %>
			</form>
		<% else %>
			<div class="cbi-section-descr"><%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually.%></div>
		<% end %>
		</div>
	</div>
	</fieldset>

<%+footer%>